package org.jeecg.modules.zhima.portal.enums;

/**
 * 赛事规则-报名规则
 */
public enum GameJoinRule {

    FREE(0, "免费报名"),
    RMB(1, "RMB报名"),
    JF(2, "积分报名"),
    AUTO(3, "用户自选");

    public Integer CODE;

    public String VALUE;

     GameJoinRule(Integer code, String value){
        this.CODE = code;
        this.VALUE = value;
    }

    public static GameJoinRule get(Integer code){
         switch (code){
             case 0:
                 return FREE;
             case 2:
                 return JF;
             case 3:
                 return AUTO;
             case 1:
             default:
                 return RMB;
         }
    }
}
